-
Notifications
You must be signed in to change notification settings - Fork 7
multi: Add 12 and 24 word seed restoration. #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
441540b to
fe6fc61
Compare
fe6fc61 to
66d9239
Compare
66d9239 to
07ce00b
Compare
07ce00b to
bf9985b
Compare
|
Allowing for different length mnemonics and add more tests https://github.com/decred/libwallet/compare/07ce00bf6fe9e3378a8b41d69f176b9397e46a77..bf9985b286b73e4a6478cb994a9ab4e34dcb1a20 |
bf9985b to
9525d9d
Compare
| switch nWords { | ||
| case 15: | ||
| seed, birthday, err = dexmnemonic.DecodeMnemonic(cfg.Mnemonic) | ||
| seedType = dcr.STFifteenWords |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe doesn't even need the type... If this is how we tell in the beginning, can just always do this I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving the type for now. I guess could have more types in the future that are the same length as current. This also reads better later.
closes #32